package com.mybatis.mp.scenery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 门票订单
 * </p>
 *
 * @author baiye
 * @since 2020-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TSceneryOrder对象", description="门票订单")
public class TSceneryOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单编号，频道id+时间戳+用户ID+5位随机数")
    private String sn;

    @ApiModelProperty(value = "频道id")
    private Integer channelId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "手机")
    private String mobile;

    @ApiModelProperty(value = "总金额， 单位分")
    private Integer amount;

    @ApiModelProperty(value = "实际支付总额， 单位分")
    private Integer realAmount;

    @ApiModelProperty(value = "支付给供应商总金额，单位分")
    private Integer vendorAmount;

    @ApiModelProperty(value = "支付订单号")
    private String payOrderSn;

    @ApiModelProperty(value = "状态:SceneryOrderStatusConst")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "供应商单号")
    private String vendorSn;

    @ApiModelProperty(value = "是否vip订单")
    private Boolean isVip;

    @ApiModelProperty(value = "开始支付时间")
    private LocalDateTime startPayTime;

    @ApiModelProperty(value = "结束支付时间")
    private LocalDateTime endPayTime;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

    @ApiModelProperty(value = "超时时间")
    private LocalDateTime expiredAt;

    @ApiModelProperty(value = "系统 SystemConst")
    private Boolean sourceSys;

    @ApiModelProperty(value = "来源 SourceWayConst")
    private Boolean sourceWay;

    @ApiModelProperty(value = "UnionLanguageConst 语言 1:中文 2:双语")
    private Boolean language;

    @ApiModelProperty(value = "短信内容")
    private String smsContent;

    @ApiModelProperty(value = "付款交易单号")
    private String paymentSettlementSn;

    @ApiModelProperty(value = "退款交易单号")
    private String refundSettlementSn;


}
